package DesignMode.Mediator;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}15:33
 */
public class ConcreteColleague1 extends Colleague {
    public ConcreteColleague1(Mediator mediator) {
        super(mediator);
    }

    public void Send(String message){
        mediator.Send(message,this);//通过中介者发送消息
    }
    public void Notify(String message){
        System.out.println("同事1得到此消息："+message);
    }
}
